-- GENERATED SPELL FOR [Iron Thane Argrum] --


function spell0_26348(pUnit, Event) --@Call Lightning,n/a--
pUnit:FullCastSpellOnTarget(32018,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26348', 579, 1)
end

function spell1_26348(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(52651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26348', 30319, 1)
end

function Sorts_26348(pUnit, Event)
local choix_sorts_26348 = math.random(0, 1)
if choix_sorts_26348 == 0 then
pUnit:RegisterEvent('spell0_26348', 1, 1)
end
if choix_sorts_26348 == 1 then
pUnit:RegisterEvent('spell1_26348', 1, 1)
end
end

function mob26348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26348', math.random(1500, 3000), 1)
end

function mob26348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26348, 1, 'mob26348_Action')
RegisterUnitEvent(26348, 2, 'mob26348_Leave')
RegisterUnitEvent(26348, 3, 'mob26348_Kill')
RegisterUnitEvent(26348, 4, 'mob26348_Die')
